package cc.rengu.redp.system.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ExcelIgnoreUnannotated
@TableName("T_DICT")
public class Dict implements Serializable {

    private static final long serialVersionUID = 7780820231535870010L;

    @TableId(value = "DICT_ID")
    private Long dictId;

    @NotBlank(message = "{required}")
    @Size(max = 100, message = "{noMoreThan}")
    @ExcelProperty(value = "键")
    private String keyy;

    @NotBlank(message = "{required}")
    @Size(max = 100, message = "{noMoreThan}")
    @ExcelProperty(value = "值")
    private String valuee;

    @Size(max = 100, message = "{noMoreThan}")
    @ExcelProperty(value = "组名")
    private String groupName = "default";

    @NotBlank(message = "{required}")
    @Size(max = 100, message = "{noMoreThan}")
    @ExcelProperty(value = "字段名")
    private String fieldName;

}
